package com.example.demo.client.vm.sysbasequery;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author zhengmf
 * @Date 2018/12/26  15:59
 */
@ApiModel("登录日志")
public class LoginLogVm implements Serializable {
    private static final long serialVersionUID = 707628988349481450L;
    @ApiModelProperty("ID")
    private Long id;
    @ApiModelProperty("操作类型")
    private String operateAction;
    @ApiModelProperty("登录名")
    private String loginName;
    @ApiModelProperty("登录描述")
    private String loginDesc;
    @ApiModelProperty("登录时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;
    @ApiModelProperty("登录ip")
    private String loginIp;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOperateAction() {
        return operateAction;
    }

    public void setOperateAction(String operateAction) {
        this.operateAction = operateAction;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginDesc() {
        return loginDesc;
    }

    public void setLoginDesc(String loginDesc) {
        this.loginDesc = loginDesc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    @Override
    public String toString() {
        return "LoginLogVm{" +
            "id=" + id +
            ", operateAction='" + operateAction + '\'' +
            ", loginName='" + loginName + '\'' +
            ", loginDesc='" + loginDesc + '\'' +
            ", createTime=" + createTime +
            ", loginIp='" + loginIp + '\'' +
            '}';
    }
}
